diff options
Diffstat (limited to 'src/pages/projets/[slug].tsx')
| -rw-r--r-- | src/pages/projets/[slug].tsx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/pages/projets/[slug].tsx b/src/pages/projets/[slug].tsx index afcf060..717ae13 100644 --- a/src/pages/projets/[slug].tsx +++ b/src/pages/projets/[slug].tsx @@ -170,6 +170,12 @@ const ProjectPage: NextPageWithLayout<ProjectPageProps> = ({ project }) => { return links; }; + const loadingRepoPopularity = intl.formatMessage({ + defaultMessage: 'Loading the repository popularity...', + description: 'ProjectsPage: loading repository popularity', + id: 'RwI3B9', + }); + const { isError, isLoading, data } = useGithubApi( /* * Repo should be defined for each project so for now it is safe for my @@ -182,7 +188,7 @@ const ProjectPage: NextPageWithLayout<ProjectPageProps> = ({ project }) => { ); if (isError) return 'Error'; - if (isLoading || !data) return <Spinner />; + if (isLoading || !data) return <Spinner aria-label={loadingRepoPopularity} />; const getRepoPopularity = (repo: string) => { const stars = intl.formatMessage( |
